<?php

namespace App\Http\Controllers\Api\V1;

use App\Models\User;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

class UserController extends Controller
{
    public function getInfo(Request $request)
    {
        $user = User::findOrFail($request->user()->id, ['username', 'avatar']);

        return $user;
    }
}

